import request from '@/utils/request'
/**
 *
 * @param {mobile,password} data
 * @returns
 */
export function login(data) {
  return request.post('/sys/login', data)
}

export function getInfo(data) {
  return request.post('/sys/profile', data)
}

export function getInfoById(id) {
  return request.get('/sys/user/' + id)
}
